﻿// -----------------------------------------------------------------------
// <copyright file="IProjectItemSelector.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Rosieks.VisualStudio.Web.Flow.Interop
{
    using System;
    using System.Runtime.InteropServices;
    using Microsoft.VisualStudio.Shell.Interop;

    [ComImport, Guid("EDDE1B36-C493-4cbe-B75C-762947CFE068"), InterfaceType(ComInterfaceType.InterfaceIsDual)]
    internal interface IProjectItemSelector
    {
        [PreserveSig, DispId(1)]
        int SelectItem([In, MarshalAs(UnmanagedType.Interface)] IVsHierarchy hierarchy, [In, MarshalAs(UnmanagedType.U4)] uint itemID, [In, MarshalAs(UnmanagedType.LPWStr)] string filters, [In, MarshalAs(UnmanagedType.LPWStr)] string dlgTitle, [In, MarshalAs(UnmanagedType.U4)] ProjectItemSelectorFlags flags, [In, MarshalAs(UnmanagedType.LPWStr)] string relUrlToAnchor, [In, MarshalAs(UnmanagedType.LPWStr)] string relUrlToSelect, [In, MarshalAs(UnmanagedType.LPWStr)] string baseUrl, [MarshalAs(UnmanagedType.BStr)] out string relUrlOfSelectedItem, [MarshalAs(UnmanagedType.Bool)] out bool canceled);
    }
}
